package com.lyy.util;

import cn.hutool.core.util.DesensitizedUtil;
import com.lyy.entity.User;

/**
 * @author Liangyaoyun
 */
public class UserDesensitizedUtil {
    public User UserUtil(User user){
        user.setPhone(DesensitizedUtil.mobilePhone(user.getPhone()));
        user.setIdCard(DesensitizedUtil.idCardNum(user.getIdCard(),4,6));
        user.setRealName(DesensitizedUtil.chineseName(user.getRealName()));
        user.setPassword(null);
        return user;
    }

}
